#include "scope.h"

extern int Scope_defineSymbol(Scope* self, gchar* name, void* obj)
{
	return self->type->defineSymbol(self, name, obj);
}

extern int Scope_resolveSymbol(Scope* self, gchar* name, void* obj)
{
	return self->type->resolveSymbol(self, name, obj);
}

static int defineSymbol(Scope* self, gchar* name, void* obj)
{
	return 0;
}

static int resolveSymbol(Scope* self, gchar* name, void* obj)
{
	return 0;
}

const ScopeType scopeType = { defineSymbol, resolveSymbol };

Scope* Scope_init(Scope* self)
{
	self->type = &scopeType;
	return self;
}